package com.jyw.business.obstacles.domain.dto.web;

import com.jyw.system.domain.vo.SimpleFileVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;


/**
 * 工单升级
 *
 * @author 伍绍宇 Coy
 * @date 2021年3月9日 10:41:24
 */
@Data
@ApiModel("工单升级请求实体")
public class OrderUpgradeDto implements Serializable {

    @ApiModelProperty(value = "工单号")
    private String orderNum;

    @ApiModelProperty(value = "涉及系统")
    @NotNull(message = "涉及系统不能为空")
    private String aboutSystem;

    @ApiModelProperty(value = "紧急程度")
    @NotNull(message = "紧急程度不能为空")
    private Integer level;

    @ApiModelProperty(value = "需求标题")
    @Size(max = 100, message = "需求标题限定长度为100")
    @NotNull(message = "需求标题不能为空")
    private String title;

    @ApiModelProperty(value = "需求描述")
    @Size(max = 255, message = "需求描述限定长度为255")
    private String remark;

    @ApiModelProperty(value = "附件")
    @Size(max = 2000, message = "附件限定长度为2000")
    private List<SimpleFileVo> enclosure;

    @ApiModelProperty(value = "提出日期")
    private LocalDate startTime;

    @ApiModelProperty(value = "期望完成日期")
    private LocalDate endTime;

    @NotEmpty(message = "联系人列表不能为空")
    @ApiModelProperty(value = "联系人列表")
    private List<ProposeInfo> proposeList;

}
